package servletimpl;

import javax.servlet.*;
import java.io.IOException;

/**
 * 继承 GenericServlet 抽象类来实现一个 Servlet
 */
public class ExtandGenericServlet extends GenericServlet {

    @Override
    public void init() throws ServletException {
        System.out.println("初始化配置写在这里...");
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("ExtandGenericServlet 被访问了...");
    }

}
